package com.ruoyi.psi.inventory.record.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 查询条件
 */
@Data
public class StockInRecordCond extends BaseEntity {
    /**
     * 入库时间
     */
    @ApiModelProperty(value = "入库时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp createTime;

    /**
     * 来源类型
     * 加工单1、委外生产计划2
     * 采购3
     */
    @ApiModelProperty(value = "来源类型 加工单1、委外生产计划2、采购3")
    private String sourceType;

    /**
     * 员工编号
     */
    @NotNull(message = "员工编号不能为空")
    @ApiModelProperty(value = "员工编号", required = true)
    private String staffId;

    /**
     * 产品编号
     */
    @NotNull(message = "产品编号不能为空")
    @ApiModelProperty(value = "产品编号", required = true)
    @Excel(name = "产品编号")
    private String produceId;

    /**
     * 仓库编号
     */
    @NotNull(message = "仓库编号不能为空")
    @ApiModelProperty(value = "仓库编号", required = true)
    private String warehouseId;
}
